package com.smart.community.work.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 安保巡逻视图对象
 * 
 * @author Wu.Liang
 * @since 2025-01-30
 * @version 1.0.0
 */
@Data
@Schema(description = "安保巡逻视图对象")
public class SecurityPatrolVO {

    @Schema(description = "巡逻记录ID")
    private Long id;

    @Schema(description = "巡逻路线ID")
    private Long routeId;

    @Schema(description = "巡逻路线名称")
    private String routeName;

    @Schema(description = "巡逻用户ID")
    private Long userId;

    @Schema(description = "巡逻用户姓名")
    private String userName;

    @Schema(description = "巡逻用户真实姓名")
    private String realName;

    @Schema(description = "巡逻日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate patrolDate;

    @Schema(description = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    @Schema(description = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

    @Schema(description = "已完成检查点（JSON格式）")
    private String checkpointsCompleted;

    @Schema(description = "巡逻照片（JSON格式）")
    private String patrolPhotos;

    @Schema(description = "异常事件记录")
    private String abnormalEvents;

    @Schema(description = "巡逻状态：1-进行中，2-已完成，3-异常中断")
    private Integer status;

    @Schema(description = "状态描述")
    private String statusDesc;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @Schema(description = "创建人ID")
    private Long createBy;

    @Schema(description = "更新人ID")
    private Long updateBy;

    @Schema(description = "版本号")
    private Integer version;

    @Schema(description = "删除标志：0-未删除，1-已删除")
    private Integer deleted;

    @Schema(description = "物业公司ID")
    private Long propertyCompanyId;

    @Schema(description = "物业公司名称")
    private String propertyCompanyName;
}
